package com.liuyandog;


import com.liuyandog.pojo.Administrator;
import com.liuyandog.server.AdminBookServer;
import com.liuyandog.server.AdminWelcomeServer;

import javax.swing.*;
import java.awt.*;

public class AdministratorMainUI extends JFrame {
    public static Administrator administrator;
    public AdministratorMainUI(String title,Administrator a) throws HeadlessException {
        super(title);
        administrator=a;//设置当前界面拥有的管理员
        setSize(700,500);
        setLocationRelativeTo(null);
        JTabbedPane jTabbedPane=new JTabbedPane();
        jTabbedPane.add("开始",new AdminWelcomeServer(a));
        jTabbedPane.add("书籍管理",new AdminBookServer());
        //setResizable(false);
        Container con=getContentPane();
        con.add(jTabbedPane);
    }


}
